package com.wutuo.classroom.provider.dao;

import com.wutuo.classroom.api.request.LearningClassroomRequest;
import com.wutuo.classroom.api.request.ListLearningClassroomRequest;
import com.wutuo.classroom.api.response.LearningClassroomResponse;
import com.wutuo.classroom.provider.base.BaseLearningClassroomMapper;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 学堂 Dao 层
 *
 * @author lvh
 * @version 1.0
 */
public interface LearningClassroomMapper extends BaseLearningClassroomMapper {

    @SelectProvider(type = LearningClassroomSqlProvider.class, method = "lisForPage")
    @ResultType(value = LearningClassroomResponse.class) List<LearningClassroomResponse> lisForPage(
        ListLearningClassroomRequest request);

    @SelectProvider(type = LearningClassroomSqlProvider.class, method = "list")
    @ResultType(value = LearningClassroomResponse.class) List<LearningClassroomResponse> list(
        LearningClassroomRequest request);
}